function [ clusterIndices ] = getCluster( clusterCentroids, data )
    %Given the cluster centroids, and a number of normalized! observations,
    %returns the cluster indices which observations belong to
    
    %Get the distance of observations to cluster centroids
    D = pdist2(data, clusterCentroids);
    %Get the minimum distance from each row and observation is assigned to
    %that cluster
    [~,clusterIndices] = min(D,[],2)
end

